Skip to content

Potential fix for code scanning alert no. 8: Workflow does not contain permissions#21

Open
evanwilson-arch wants to merge 9 commits intomainfrom
alert-autofix-8
Open

Potential fix for code scanning alert no. 8: Workflow does not contain permissions#21
evanwilson-arch wants to merge 9 commits intomainfrom
alert-autofix-8

Conversation

@evanwilson-arch
Copy link
Copy Markdown
Owner

Potential fix for https://github.com/evanwilson-arch/gemini-cli/security/code-scanning/8

The fix is to explicitly restrict the GITHUB_TOKEN permissions for the test job to the minimum it needs—here that’s just read access to repository contents. This is done by adding a permissions: block under the test job definition, analogous to the existing permissions: block in publish-preview, but with contents: read instead of any write scopes.

Concretely, in .github/workflows/release-promote.yml, locate the test job (line 156 onward). Immediately under runs-on: 'ubuntu-latest' (line 159), add a permissions: section with contents: 'read'. No other functionality changes are required, and no new imports or steps are needed, because this only affects the implicit token permissions granted by GitHub to the job.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

evanwilson-arch and others added 9 commits April 1, 2026 13:59
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.19.1 to 25.5.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.5.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [thollander/actions-comment-pull-request](https://github.com/thollander/actions-comment-pull-request) from 65f9e5c9a1f2cd378bd74b2e057c9736982a8e74 to e4a76dd2b0a3c2027c3fd84147a67c22ee4c90fa.
- [Release notes](https://github.com/thollander/actions-comment-pull-request/releases)
- [Commits](thollander/actions-comment-pull-request@65f9e5c...e4a76dd)

---
updated-dependencies:
- dependency-name: thollander/actions-comment-pull-request
  dependency-version: e4a76dd2b0a3c2027c3fd84147a67c22ee4c90fa
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the actions-dependencies group with 3 updates: [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action), [preactjs/compressed-size-action](https://github.com/preactjs/compressed-size-action) and [google-github-actions/run-gemini-cli](https://github.com/google-github-actions/run-gemini-cli).


Updates `lycheeverse/lychee-action` from 2.6.1 to 2.8.0
- [Release notes](https://github.com/lycheeverse/lychee-action/releases)
- [Commits](lycheeverse/lychee-action@885c65f...8646ba3)

Updates `preactjs/compressed-size-action` from 2.8.0 to 2.9.1
- [Release notes](https://github.com/preactjs/compressed-size-action/releases)
- [Commits](preactjs/compressed-size-action@946a292...66325aa)

Updates `google-github-actions/run-gemini-cli` from 0.1.11 to 0.1.21
- [Release notes](https://github.com/google-github-actions/run-gemini-cli/releases)
- [Changelog](https://github.com/google-github-actions/run-gemini-cli/blob/main/CHANGELOG.md)
- [Commits](google-github-actions/run-gemini-cli@a3bf790...9dbec29)

---
updated-dependencies:
- dependency-name: lycheeverse/lychee-action
  dependency-version: 2.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-dependencies
- dependency-name: preactjs/compressed-size-action
  dependency-version: 2.9.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-dependencies
- dependency-name: google-github-actions/run-gemini-cli
  dependency-version: 0.1.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.5.0 to 4.0.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](docker/login-action@184bdaa...b45d80f)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [myrotvorets/set-commit-status-action](https://github.com/myrotvorets/set-commit-status-action) from 16037e056d73b2d3c88e37e393ff369047f70886 to 8595a0295138ef0f89657bff1c381470ac272aae.
- [Release notes](https://github.com/myrotvorets/set-commit-status-action/releases)
- [Commits](myrotvorets/set-commit-status-action@16037e0...8595a02)

---
updated-dependencies:
- dependency-name: myrotvorets/set-commit-status-action
  dependency-version: 8595a0295138ef0f89657bff1c381470ac272aae
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/stale](https://github.com/actions/stale) from 9.1.0 to 10.2.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](actions/stale@5bef64f...b5d41d4)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: 10.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@evanwilson-arch evanwilson-arch marked this pull request as ready for review April 2, 2026 05:22
@evanwilson-arch evanwilson-arch enabled auto-merge (squash) April 2, 2026 05:22
@evanwilson-arch evanwilson-arch disabled auto-merge April 2, 2026 05:24
@evanwilson-arch evanwilson-arch enabled auto-merge (squash) April 2, 2026 05:24
@evanwilson-arch evanwilson-arch disabled auto-merge April 2, 2026 05:26
@evanwilson-arch evanwilson-arch enabled auto-merge (squash) April 2, 2026 05:33
@evanwilson-arch evanwilson-arch disabled auto-merge April 2, 2026 05:33
@evanwilson-arch evanwilson-arch enabled auto-merge (rebase) April 2, 2026 05:34
@evanwilson-arch evanwilson-arch disabled auto-merge April 2, 2026 05:35
@evanwilson-arch evanwilson-arch enabled auto-merge (squash) April 2, 2026 05:50
@evanwilson-arch evanwilson-arch disabled auto-merge April 2, 2026 05:59
@evanwilson-arch evanwilson-arch enabled auto-merge (squash) April 2, 2026 06:36
@evanwilson-arch evanwilson-arch disabled auto-merge April 2, 2026 06:44
@evanwilson-arch evanwilson-arch enabled auto-merge (rebase) April 2, 2026 06:44
@evanwilson-arch evanwilson-arch disabled auto-merge April 2, 2026 06:50
@evanwilson-arch evanwilson-arch enabled auto-merge (squash) April 2, 2026 07:16
@evanwilson-arch evanwilson-arch disabled auto-merge April 2, 2026 07:23
Copy link
Copy Markdown

@milehighxworld-sys milehighxworld-sys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100

@evanwilson-arch evanwilson-arch enabled auto-merge (squash) April 4, 2026 01:19
@evanwilson-arch evanwilson-arch disabled auto-merge April 4, 2026 01:19
Copy link
Copy Markdown
Owner Author

@evanwilson-arch evanwilson-arch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100

@evanwilson-arch evanwilson-arch enabled auto-merge (squash) April 4, 2026 01:42
@evanwilson-arch evanwilson-arch disabled auto-merge April 4, 2026 02:14
@evanwilson-arch evanwilson-arch enabled auto-merge (squash) April 4, 2026 02:46
Copy link
Copy Markdown
Owner Author

@evanwilson-arch evanwilson-arch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to fetch from the remote repository. See the Output window for more details.

@evanwilson-arch evanwilson-arch disabled auto-merge April 4, 2026 05:17
Copy link
Copy Markdown
Owner Author

@evanwilson-arch evanwilson-arch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants